package com.qumitech.visualnovel.service.requests.impl;

import com.qumitech.visualnovel.component.util.CommonUtil;
import com.qumitech.visualnovel.datasource.console.RequestExceptInfoMapper;
import com.qumitech.visualnovel.model.dao.console.RequestExceptInfo;
import com.qumitech.visualnovel.service.requests.RequestExceptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author zhangbc
 * @version 1.0.0
 * @date 2020/7/18 17:23
 **/
@Service
public class RequestExceptServiceImpl implements RequestExceptService {

    @Autowired
    RequestExceptInfoMapper exceptInfoMapper;

    @Override
    public int getRequestExceptCount(Integer accountId, String phone, String startTime, String endTime) {
        return exceptInfoMapper.getCount(accountId, phone, startTime, endTime);
    }

    @Override
    public List<RequestExceptInfo> getRequestExceptList(Integer accountId, String phone,
                                                        String startTime, String endTime, int offset, int limit,
                                                        String orderType, String orderBy) {
        return exceptInfoMapper.getList(accountId, phone, startTime, endTime, offset, limit, orderType, orderBy);
    }
}
